package com.sdy.resdir.biz.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sdy.common.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * ip实施工单
 * </p>
 *
 * @author cgj
 * @since 2019-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="RdIpImpleOrder对象", description="ip实施工单")
public class RdIpImpleOrder extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    @ApiModelProperty(value = "id主键")
    @TableId
    private Integer id;

    /**
     * 实施工单号
     */
    @ApiModelProperty(value = "实施工单号")
    private String orderNo;

    /**
     * 关联的申请单号
     */
    @ApiModelProperty(value = "关联的申请单号")
    private String applyNum;

    /**
     * 自建系统唯一编码
     */
    @ApiModelProperty(value = "自建系统id")
    private Integer appId;

    /**
     * 操作ip列表
     */
    @ApiModelProperty(value = "操作ip的ID列表,此处关联ipChange表")
    private String ipId;

    /**
     * 申请人名称
     */
    @ApiModelProperty(value = "申请人名称")
    @TableField(exist = false)
    private String userName;

    /**
     * 部门id
     */
    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    private Integer userId;

    /**
     * 操作类型0 删除 1-新增 2-删除
     */
    @ApiModelProperty(value = "操作类型0 删除 1-新增 2-删除")
    private Integer type;

    /**
     * 实施状态 0-待实施 1-实施完成
     */
    @ApiModelProperty(value = "实施状态 0-待实施 1-实施完成")
    private Integer state;

    /**
     * 申请日期
     */
    @ApiModelProperty(value = "申请日期")
    @JsonFormat(pattern = DateUtil.DATETIME_FORMAT)
    private Date createTime;

}
